<?php
require_once( 'XmlDatabaseKeyElement.php' );

class XmlDatabaseForeignKeyElement extends XmlDatabaseKeyElement {

	function XmlDatabaseForeignKeyElement( &$oConfiguration, &$oForeignKey ) {

		$this->XmlDatabaseKeyElement( $oConfiguration, $oForeignKey, 'ShowForeignKeyColumns', 'FOREIGN_KEY', 'GetFromTableName' );

		$this->AddAttribute( 'FROM_TABLE', $oForeignKey->GetFromTableName() );
		$this->AddAttribute( 'TO_TABLE'  , $oForeignKey->GetToTableName() );
		$this->AddAttribute( 'MANDATORY' , $oForeignKey->IsMandatory() );
		
	}
}
	
?>
